﻿using System.Collections.Generic;
using System.Linq;

namespace Citi.EmailSender.Domain.Repository
{
    public interface IRepository<T> //where T : EntityBase<T>
    {
        void Save(T entity);
        void Save(IEnumerable<T> entities);
        void Delete(T entity);
        void ExecuteQuery(IEnumerable<string> clause);
        T GetById(int id);
        IQueryable<T> GetAll();
    }
}
